package cn.zlp.hrm.mapper;

import cn.zlp.hrm.domain.Permission;
import com.baomidou.mybatisplus.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zlp
 * @since 2022-01-02
 */
public interface PermissionMapper extends BaseMapper<Permission> {

    /**
     * 根据用户id查询权限
     * @param id
     * @return
     */
    List<Permission> loadPermissionsByUserId(Long id);
}
